﻿//This is a cmocean colormap
//All credit to Kristen Thyng
//This colormap is under the MIT License
//All cmocean colormaps are available at https://github.com/matplotlib/cmocean/tree/master/cmocean/rgb

namespace ScottPlot.Drawing.Colormaps
{
    public class Turbid : IColormap
    {
        public string Name => "Turbid";

        public (byte r, byte g, byte b) GetRGB(byte value) =>
            (cmaplocal[value, 0], cmaplocal[value, 1], cmaplocal[value, 2]);

        private static readonly byte[,] cmaplocal = {
            { 233, 246, 171 },
            { 232, 245, 170 },
            { 232, 243, 168 },
            { 231, 242, 167 },
            { 230, 241, 165 },
            { 230, 240, 164 },
            { 229, 239, 162 },
            { 229, 238, 161 },
            { 228, 236, 159 },
            { 228, 235, 158 },
            { 227, 234, 156 },
            { 227, 233, 155 },
            { 226, 232, 154 },
            { 226, 231, 152 },
            { 225, 229, 151 },
            { 224, 228, 149 },
            { 224, 227, 148 },
            { 223, 226, 146 },
            { 223, 225, 145 },
            { 222, 224, 143 },
            { 222, 223, 142 },
            { 221, 221, 141 },
            { 221, 220, 139 },
            { 220, 219, 138 },
            { 220, 218, 136 },
            { 219, 217, 135 },
            { 219, 216, 134 },
            { 218, 215, 132 },
            { 218, 213, 131 },
            { 217, 212, 130 },
            { 217, 211, 128 },
            { 217, 210, 127 },
            { 216, 209, 126 },
            { 216, 208, 124 },
            { 215, 207, 123 },
            { 215, 206, 122 },
            { 214, 204, 120 },
            { 214, 203, 119 },
            { 213, 202, 118 },
            { 213, 201, 116 },
            { 212, 200, 115 },
            { 212, 199, 114 },
            { 211, 198, 113 },
            { 211, 197, 111 },
            { 211, 195, 110 },
            { 210, 194, 109 },
            { 210, 193, 108 },
            { 209, 192, 107 },
            { 209, 191, 105 },
            { 208, 190, 104 },
            { 208, 189, 103 },
            { 207, 188, 102 },
            { 207, 187, 101 },
            { 207, 186, 100 },
            { 206, 184, 98 },
            { 206, 183, 97 },
            { 205, 182, 96 },
            { 205, 181, 95 },
            { 204, 180, 94 },
            { 204, 179, 93 },
            { 203, 178, 92 },
            { 203, 177, 91 },
            { 202, 176, 90 },
            { 202, 175, 89 },
            { 202, 174, 88 },
            { 201, 172, 87 },
            { 201, 171, 86 },
            { 200, 170, 85 },
            { 200, 169, 84 },
            { 199, 168, 83 },
            { 199, 167, 82 },
            { 198, 166, 81 },
            { 198, 165, 81 },
            { 197, 164, 80 },
            { 197, 163, 79 },
            { 196, 162, 78 },
            { 196, 161, 77 },
            { 195, 160, 77 },
            { 195, 159, 76 },
            { 194, 158, 75 },
            { 194, 156, 74 },
            { 193, 155, 74 },
            { 193, 154, 73 },
            { 192, 153, 72 },
            { 192, 152, 72 },
            { 191, 151, 71 },
            { 191, 150, 71 },
            { 190, 149, 70 },
            { 189, 148, 69 },
            { 189, 147, 69 },
            { 188, 146, 68 },
            { 188, 145, 68 },
            { 187, 144, 67 },
            { 187, 143, 67 },
            { 186, 142, 66 },
            { 185, 141, 66 },
            { 185, 140, 66 },
            { 184, 139, 65 },
            { 183, 138, 65 },
            { 183, 137, 64 },
            { 182, 137, 64 },
            { 182, 136, 64 },
            { 181, 135, 64 },
            { 180, 134, 63 },
            { 179, 133, 63 },
            { 179, 132, 63 },
            { 178, 131, 62 },
            { 177, 130, 62 },
            { 177, 129, 62 },
            { 176, 128, 62 },
            { 175, 127, 61 },
            { 175, 126, 61 },
            { 174, 125, 61 },
            { 173, 125, 61 },
            { 172, 124, 61 },
            { 172, 123, 61 },
            { 171, 122, 60 },
            { 170, 121, 60 },
            { 169, 120, 60 },
            { 168, 119, 60 },
            { 168, 119, 60 },
            { 167, 118, 60 },
            { 166, 117, 60 },
            { 165, 116, 60 },
            { 164, 115, 59 },
            { 164, 114, 59 },
            { 163, 114, 59 },
            { 162, 113, 59 },
            { 161, 112, 59 },
            { 160, 111, 59 },
            { 159, 110, 59 },
            { 158, 110, 59 },
            { 158, 109, 59 },
            { 157, 108, 59 },
            { 156, 107, 59 },
            { 155, 107, 59 },
            { 154, 106, 59 },
            { 153, 105, 59 },
            { 152, 104, 59 },
            { 151, 104, 58 },
            { 150, 103, 58 },
            { 150, 102, 58 },
            { 149, 101, 58 },
            { 148, 101, 58 },
            { 147, 100, 58 },
            { 146, 99, 58 },
            { 145, 98, 58 },
            { 144, 98, 58 },
            { 143, 97, 58 },
            { 142, 96, 58 },
            { 141, 96, 58 },
            { 140, 95, 58 },
            { 139, 94, 58 },
            { 138, 94, 58 },
            { 137, 93, 58 },
            { 136, 92, 58 },
            { 135, 92, 57 },
            { 134, 91, 57 },
            { 133, 90, 57 },
            { 132, 90, 57 },
            { 131, 89, 57 },
            { 130, 88, 57 },
            { 129, 88, 57 },
            { 128, 87, 57 },
            { 127, 86, 57 },
            { 126, 86, 57 },
            { 125, 85, 56 },
            { 124, 84, 56 },
            { 123, 84, 56 },
            { 122, 83, 56 },
            { 121, 83, 56 },
            { 120, 82, 56 },
            { 119, 81, 56 },
            { 118, 81, 56 },
            { 117, 80, 55 },
            { 116, 79, 55 },
            { 115, 79, 55 },
            { 114, 78, 55 },
            { 113, 78, 55 },
            { 112, 77, 55 },
            { 111, 76, 54 },
            { 110, 76, 54 },
            { 109, 75, 54 },
            { 108, 75, 54 },
            { 107, 74, 53 },
            { 106, 73, 53 },
            { 105, 73, 53 },
            { 103, 72, 53 },
            { 102, 72, 53 },
            { 101, 71, 52 },
            { 100, 70, 52 },
            { 99, 70, 52 },
            { 98, 69, 52 },
            { 97, 69, 51 },
            { 96, 68, 51 },
            { 95, 67, 51 },
            { 94, 67, 51 },
            { 93, 66, 50 },
            { 92, 66, 50 },
            { 91, 65, 50 },
            { 90, 65, 49 },
            { 89, 64, 49 },
            { 88, 63, 49 },
            { 87, 63, 48 },
            { 86, 62, 48 },
            { 85, 62, 48 },
            { 84, 61, 48 },
            { 83, 60, 47 },
            { 82, 60, 47 },
            { 81, 59, 47 },
            { 80, 59, 46 },
            { 79, 58, 46 },
            { 78, 57, 46 },
            { 77, 57, 45 },
            { 75, 56, 45 },
            { 74, 56, 44 },
            { 73, 55, 44 },
            { 72, 54, 44 },
            { 71, 54, 43 },
            { 70, 53, 43 },
            { 69, 53, 43 },
            { 68, 52, 42 },
            { 67, 51, 42 },
            { 66, 51, 41 },
            { 65, 50, 41 },
            { 64, 50, 41 },
            { 63, 49, 40 },
            { 62, 48, 40 },
            { 61, 48, 39 },
            { 60, 47, 39 },
            { 59, 47, 39 },
            { 58, 46, 38 },
            { 57, 45, 38 },
            { 56, 45, 37 },
            { 55, 44, 37 },
            { 54, 43, 36 },
            { 53, 43, 36 },
            { 52, 42, 36 },
            { 51, 42, 35 },
            { 50, 41, 35 },
            { 49, 40, 34 },
            { 48, 40, 34 },
            { 47, 39, 33 },
            { 46, 38, 33 },
            { 45, 38, 32 },
            { 44, 37, 32 },
            { 43, 36, 31 },
            { 42, 36, 31 },
            { 41, 35, 31 },
            { 40, 35, 30 },
            { 39, 34, 30 },
            { 38, 33, 29 },
            { 37, 33, 29 },
            { 36, 32, 28 },
            { 35, 31, 28 },
            { 34, 31, 27 }

        };
    }
}

